c program to find least common multiple